package io.renren.service;

import com.alibaba.fastjson.JSONObject;
import io.renren.entity.InterviewEntity;
import io.renren.entity.SysUserEntity;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-06-27 15:42:37
 */
public interface InterviewService {
	
	InterviewEntity queryObject(Integer id);
	
	List<InterviewEntity> queryList(Map<String, Object> map);

	List<InterviewEntity> querySettlementList(Map<String, Object> map);

	int queryTotal(Map<String, Object> map);

	int querySettlementTotal(Map<String, Object> map);
	
	void save(InterviewEntity interview);
	
	void update(InterviewEntity interview);
	
	void delete(Integer id);
	
	void deleteBatch(Integer[] ids);

	void audit(JSONObject jsonObject,SysUserEntity sysUserEntity);

	List<InterviewEntity> getInterviewByStatus(Map<String, Object> map);

	void updateFirstInterviewStatus(JSONObject jsonObject) throws ParseException;

	void sysConfirm();

	void confirm(JSONObject jsonObject);

	void addBatchCode(JSONObject jsonObject);

	int queryTotalInterview(Map<String, Object> map);
}
